import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import Element from 'element-ui'
import Upload from 'element-ui'
import * as echarts from 'echarts'
import 'element-ui/lib/theme-chalk/index.css'
import './plugins'
import '@/layouts/export'

/**
 * @author https://vue-admin-beautiful.com （不想保留author可删除）
 * @description 生产环境默认都使用mock，如果正式用于生产环境时，记得去掉
 */

if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('@/utils/static')
  mockXHR()
}

Element.Dialog.props.lockScroll.default = false
Vue.config.productionTip = false

Vue.prototype.$echarts = echarts
Vue.prototype.$baseImageUrl = 'https://www.wandilease.com:8001' //全局图片端口
new Vue({
  Upload,
  Element,
  el: '#vue-admin-beautiful',
  router,
  store,
  render: (h) => h(App),
})
